import Vue from 'vue'
import Router from 'vue-router'
import Register from '@/components/Register'
import Login from '@/components/Login'
import Home from '@/components/Home'
import NotFound from "@/components/NotFound"

Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',redirect:'/home'},
    {path: '/home',name: 'Home',component: Home},
    {path: '/register',name: 'Register',component: Register},
    {path: '/login',name: 'Login',component: Login},
    {path: '/*',name: 'NotFound',component: NotFound},
  ]
})
